package demo09.ConstructorMethodReference;

import demo03.Stream.Person;

public class Demo {
    public static void printName(String name,PersonBuilder pb){
        Person person = pb.BuildPerson(name);
        System.out.println(person);
    }

    public static void main(String[] args) {
//        printName("张三",name -> new Person(name));
        printName("张三",Person::new);
    }
}
